package com.xihuanjun.healthcode.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2022-10-25 09:43:17
 */
@Data
@ToString
@NoArgsConstructor
@TableName("user")
public class User extends Model<User> {

    @TableId
    private Long id;
    //登录名
    private String loginName;
    //密码
    private String pwd;
    //显示名，乡镇名
    private String name;
    //联系人姓名
    private String contactName;
    //联系人电话
    private String phone;
    
    private String remark;


    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    
    private Integer deleted;

    @Version
    private Integer version;



    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

